home *** CD-ROM | disk | FTP | other *** search
- /*================================================================================
- dialogUtilities.h
-
- Greg Anderson
- 28 June 1991
- greggor@apple.com
-
- This file contains various and sundry dialog box utility routines
-
- ================================================================================*/
- #ifndef __TYPES__
- #include <Types.h>
- #endif
- #ifndef __DIALOGS__
- #include <Dialogs.h>
- #endif
-
- /*
- // This is the structure of an item in a dialog item list.
- // See IM I-427 for an explanation of the complete format
- // of a DITL
- */
- typedef struct
- {
- long placeholder;
- Rect location;
- unsigned char itemType;
- unsigned char extraLength;
- } DITLitem;
-
- /*
- // Prototypes for dialogUtilities.c
- */
- pascal void CenterAndShowDialog(DialogPtr dlog);
- pascal short AddNewUserItem( DialogPtr dlog );
- pascal void DrawDefaultProc(DialogPtr dlog, short item);
- pascal short InstallDefaultOutline(DialogPtr dlog, short button);
- pascal void DrawActiveItemProc(DialogPtr dlog, short item);
- pascal short InstallActiveItemOutline(DialogPtr dlog, short button);
- pascal void MoveOutline(DialogPtr dlog, short userItem, short button);
- pascal void SetItemHandle( DialogPtr dlog, short whichItem, Handle newItem );
- Point GetItemPoint( DialogPtr dlog, short itemNum );
- pascal void EnableButton(DialogPtr dlog, short button,Boolean enable);
-